package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Empsalaryperiod;

public abstract class BaseEmpsalaryperiod implements Serializable {

	public BaseEmpsalaryperiod() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmpsalaryperiod(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseEmpsalaryperiod(String id, String espdYearmonth,
			Integer espdStatus) {
		hashCode = 0x80000000;
		setId(id);
		setEspdYearmonth(espdYearmonth);
		setEspdStatus(espdStatus);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getEspdYearmonth() {
		return espdYearmonth;
	}

	public void setEspdYearmonth(String espdYearmonth) {
		this.espdYearmonth = espdYearmonth;
	}

	public Integer getEspdStatus() {
		return espdStatus;
	}

	public void setEspdStatus(Integer espdStatus) {
		this.espdStatus = espdStatus;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Empsalaryperiod))
			return false;
		Empsalaryperiod empsalaryperiod = (Empsalaryperiod) obj;
		if (null == getId() || null == empsalaryperiod.getId())
			return false;
		else
			return getId().equals(empsalaryperiod.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Empsalaryperiod";
	public static String PROP_ESPD_YEARMONTH = "espdYearmonth";
	public static String PROP_ESPD_STATUS = "espdStatus";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String espdYearmonth;
	private Integer espdStatus;

}
